package com.rich.house.controller;

import com.rich.common.entity.TbBroker;
import com.rich.house.service.BrokerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Package: com.rich.house.controller 
 * @Author: 张dy
 * @Date: Created in 2021/8/13 下午 7:34
 */
@RestController
@RequestMapping("/broker")
public class BrokerController {

    @Autowired
    private BrokerService brokerService;

    /**
     * 经纪人列表(指派经纪人)
     * @Author: 张dy
     * @Date: 2021/8/19
     * @Param:
     */
    @RequestMapping("findAll")
    public List<TbBroker> findAll(){
        return brokerService.findAll();
    }

}
